<!DOCTYPE html>
<html>
  <head>
    <title>s08.html</title>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
   
	<script type="text/javascript" src="../js/jquery-1.11.1.js"></script>
	<script type="text/javascript">
		function f1(){
			$('div[id]').css('font-size','30px');
		}
		function f2(){
			$('div[id=d2]').css('font-size','30px');
		}
		function f3(){
			$('div[id!=d2]').css('font-size','30px');
		}
	</script>
  </head>
  
  <body>
  	<!-- 属性过滤选择器 -->
  	<!-- [attribute]
  		 [attribute=value]
  		 [attribute!=value] 
  	-->
  	<a href="javascript:;" onclick="f3();">属性过滤选择器</a>
  	<div id="d1">有ID的div：d1</div>
  	<div id="d2">有ID的div：d2</div>
  	<div>没有ID的div</div>
  </body>
</html>
